package com.xmtlxx.web.controller.dh;

import cn.hutool.json.JSONObject;
import com.xmtlxx.common.core.domain.R;
import com.xmtlxx.dh.service.DhService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 大华服务控制层
 *
 * @author hergreen
 * @date 2024/10/28 10:54
 **/
@Api(value = "大华服务", tags = {"大华服务管理"})
@RequiredArgsConstructor
@RestController
@RequestMapping("dh")
public class DhController {

    private final DhService dhService;

    @ApiOperation("获取录像记录")
    @GetMapping("/getVideoRecord")
    public R<JSONObject> getVideoRecord(String beginDate, String endDate, Integer pageNum, Integer pageSize) {

        return R.ok(dhService.getVideoRecord(beginDate, endDate, pageNum, pageSize));
    }

}
